$(function() {
	/*左导航子菜单栏*/
	var $ulNav = $("div.main section ul.ul-nav");								
	var objNav = {					
		"li01":["li01-0","li01-1","li01-2","li01-3"],
		"li02":["li02-0","li02-1","li02-2","li02-3"],
		"li03":["li03-0","li03-1","li03-2","li03-3"]								
	};				
	$.each(objNav,function(i,o){
		var html = "";
		html += '<li class="li-nav">'+i+'<img src="img/more_unfold.png"/></li><li class="li-list"><ul class="ul-list">';					
		$.each(objNav[i],function(j,m){						
			html += '<li>'+objNav[i][j]+'</li>';						
		});
		$ulNav.append(html+'</ul></li>');					
	});	
	
	
	$('ul.ul-nav li.li-nav').each(function(i, o) {
		var indexLi = $('ul.ul-nav li.li-nav').eq(i);
		$(this).on('click', function() {
			$(this).toggleClass('on');
			$('ul.ul-nav li.li-list').eq(i).fadeToggle();
		});
	});
	$('ul.ul-nav li.li-list').each(function(i, o) {
		$(this).find('ul.ul-list li').each(function(j, o) {
			$(this).on('click', function() {
				$('aside div.aside-div').eq(j).css({
					'display': 'block'
				});
				$('aside div.aside-div').eq(j).siblings().css('display', 'none');
			});
		});
	});
});